Wed Jan 21 09:33:13 2004 Jonathan Blandford <jrb@gnome.org>
* libgnomevfs/xdgmimeglob.c:
* libgnomevfs/xdgmimemagic.c: Sync from upstream
+Wed Jan 21 09:33:13 2004 Jonathan Blandford <jrb@gnome.org>
+
+ * libgnomevfs/xdgmimeglob.c:
+ * libgnomevfs/xdgmimemagic.c: Sync from upstream
+
Tue Jan 20 13:07:04 2004 Jonathan Blandford <jrb@gnome.org>
* xdgmime.c: resync with upstream sources.
return glob_hash_node;
}
-void
+static void
_xdg_glob_hash_node_dump (XdgGlobHashNode *glob_hash_node,
int depth)
{
static void
_xdg_glob_hash_free_nodes (XdgGlobHashNode *node)
{
-
- if (node->child)
- _xdg_glob_hash_free_nodes (node->child);
- if (node->next)
- _xdg_glob_hash_free_nodes (node->next);
- free (node);
+ if (node)
+ {
+ if (node->child)
+ _xdg_glob_hash_free_nodes (node->child);
+ if (node->next)
+ _xdg_glob_hash_free_nodes (node->next);
+ free (node);
+ }
}
void
}
-void
+static void
_xdg_mime_magic_matchlet_free (XdgMimeMagicMatchlet *mime_magic_matchlet)
{
if (mime_magic_matchlet)
/* Frees mime_magic_match and the remainder of its list
*/
-void
+static void
_xdg_mime_magic_match_free (XdgMimeMagicMatch *mime_magic_match)
{
XdgMimeMagicMatch *ptr, *next;
list = mime_magic->match_list;
while (list->next != NULL)
{
- if (list->next->priority > match->priority)
+ if (list->next->priority < match->priority)
{
match->next = list->next;
list->next = match;